<template>
    <q-page-sticky position="top" expand class="bg-orange-1 shadow-1 z-10" :offset="[0, 36]">
        <q-toolbar class="min-h-[40px] flex-center">
            <template v-if="list">
                <el-button type="primary" icon="plus" @click="详情窗口.初始化()">增加</el-button>
                <el-button type="danger" icon="delete" style="margin-left: 10px;" :disabled="!list.a.选中组.length"
                    @click="list.删()">删除</el-button>
            </template>

            <q-btn push text-color="primary" label="提交" @click="设置.提交" v-if="设置">
                <q-badge color="orange" floating v-if="设置.变化了">变</q-badge>
            </q-btn>
        </q-toolbar>
    </q-page-sticky>
</template>

<script setup>
const props = defineProps({
    // 可选属性: { type: Array, default: [] }
    详情窗口: Object,
    设置: Object,
    list: Object,
})
</script>

<style lang="scss" scoped></style>